using HKB.Common;
using System;
using System.CodeDom.Compiler;
using System.ComponentModel;
using System.ComponentModel.Design;
using System.Data;
using System.Data.Common;
using System.Data.SqlClient;
using System.Diagnostics;
namespace HKB.Data.Dal.A_ShopcinfigTableAdapters
{
	[GeneratedCode("System.Data.Design.TypedDataSetGenerator", "2.0.0.0"), DataObject(true), HelpKeyword("vs.data.TableAdapter"), Designer("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"), DesignerCategory("code"), ToolboxItem(true)]
	public class HLShop_ConfigTableAdapter : Component
	{
		private SqlDataAdapter _adapter;
		private SqlConnection _connection;
		private SqlCommand[] _commandCollection;
		private bool _clearBeforeFill;
		[System.Diagnostics.DebuggerNonUserCode]
		private SqlDataAdapter Adapter
		{
			get
			{
				if (this._adapter == null)
				{
					this.InitAdapter();
				}
				return this._adapter;
			}
		}
		[System.Diagnostics.DebuggerNonUserCode]
		internal SqlConnection Connection
		{
			get
			{
				if (this._connection == null)
				{
					this.InitConnection();
				}
				return this._connection;
			}
			set
			{
				this._connection = value;
				if (this.Adapter.InsertCommand != null)
				{
					this.Adapter.InsertCommand.Connection = value;
				}
				if (this.Adapter.DeleteCommand != null)
				{
					this.Adapter.DeleteCommand.Connection = value;
				}
				if (this.Adapter.UpdateCommand != null)
				{
					this.Adapter.UpdateCommand.Connection = value;
				}
				for (int i = 0; i < this.CommandCollection.Length; i++)
				{
					if (this.CommandCollection[i] != null)
					{
						this.CommandCollection[i].Connection = value;
					}
				}
			}
		}
		[System.Diagnostics.DebuggerNonUserCode]
		protected SqlCommand[] CommandCollection
		{
			get
			{
				if (this._commandCollection == null)
				{
					this.InitCommandCollection();
				}
				return this._commandCollection;
			}
		}
		[System.Diagnostics.DebuggerNonUserCode]
		public bool ClearBeforeFill
		{
			get
			{
				return this._clearBeforeFill;
			}
			set
			{
				this._clearBeforeFill = value;
			}
		}
		[System.Diagnostics.DebuggerNonUserCode]
		public HLShop_ConfigTableAdapter()
		{
			this.ClearBeforeFill = true;
		}
		[System.Diagnostics.DebuggerNonUserCode]
		private void InitAdapter()
		{
			this._adapter = new SqlDataAdapter();
			DataTableMapping dataTableMapping = new DataTableMapping();
			dataTableMapping.SourceTable = "Table";
			dataTableMapping.DataSetTable = "HLShop_Config";
			dataTableMapping.ColumnMappings.Add("HLShopName", "HLShopName");
			dataTableMapping.ColumnMappings.Add("HLShopStatus", "HLShopStatus");
			dataTableMapping.ColumnMappings.Add("HLShopUrl", "HLShopUrl");
			dataTableMapping.ColumnMappings.Add("HLShopKey", "HLShopKey");
			dataTableMapping.ColumnMappings.Add("HLShopMasterEmail", "HLShopMasterEmail");
			dataTableMapping.ColumnMappings.Add("StatusInfo", "StatusInfo");
			dataTableMapping.ColumnMappings.Add("Model", "Model");
			dataTableMapping.ColumnMappings.Add("HLShopMasterPhone", "HLShopMasterPhone");
			dataTableMapping.ColumnMappings.Add("HLShopMasterQQ", "HLShopMasterQQ");
			dataTableMapping.ColumnMappings.Add("RegKind", "RegKind");
			dataTableMapping.ColumnMappings.Add("AutoDelCircle", "AutoDelCircle");
			dataTableMapping.ColumnMappings.Add("ItemsPrePage", "ItemsPrePage");
			dataTableMapping.ColumnMappings.Add("ShopToRate", "ShopToRate");
			dataTableMapping.ColumnMappings.Add("CreditAdd", "CreditAdd");
			dataTableMapping.ColumnMappings.Add("Announce", "Announce");
			dataTableMapping.ColumnMappings.Add("SearchHotKey", "SearchHotKey");
			dataTableMapping.ColumnMappings.Add("SendAuctionEmail", "SendAuctionEmail");
			dataTableMapping.ColumnMappings.Add("SendRegEmail", "SendRegEmail");
			dataTableMapping.ColumnMappings.Add("EnableIntergration", "EnableIntergration");
			dataTableMapping.ColumnMappings.Add("PayForSell", "PayForSell");
			dataTableMapping.ColumnMappings.Add("CostForSell", "CostForSell");
			dataTableMapping.ColumnMappings.Add("ReserveMoney", "ReserveMoney");
			dataTableMapping.ColumnMappings.Add("PayForRequest", "PayForRequest");
			dataTableMapping.ColumnMappings.Add("HLShopMasterE_PWD", "HLShopMasterE_PWD");
			dataTableMapping.ColumnMappings.Add("HLShopMasterE_UID", "HLShopMasterE_UID");
			dataTableMapping.ColumnMappings.Add("HLShopMasterE_Smtp", "HLShopMasterE_Smtp");
			this._adapter.TableMappings.Add(dataTableMapping);
			this._adapter.InsertCommand = new SqlCommand();
			this._adapter.InsertCommand.Connection = this.Connection;
			this._adapter.InsertCommand.CommandText = "INSERT INTO [HLShop_Config] ([HLShopName], [HLShopStatus], [HLShopUrl], [HLShopKey], [HLShopMasterEmail], [StatusInfo], [Model], [HLShopMasterPhone], [HLShopMasterQQ], [RegKind], [AutoDelCircle], [ItemsPrePage], [PayForSell], [CostForSell], [ReserveMoney], [PayForRequest], [ShopToRate], [CreditAdd], [Announce], [SearchHotKey], [SendAuctionEmail], [SendRegEmail], [EnableIntergration], [HLShopMasterE_PWD], [HLShopMasterE_UID], [HLShopMasterE_Smtp]) VALUES (@HLShopName, @HLShopStatus, @HLShopUrl, @HLShopKey, @HLShopMasterEmail, @StatusInfo, @Model, @HLShopMasterPhone, @HLShopMasterQQ, @RegKind, @AutoDelCircle, @ItemsPrePage, @PayForSell, @CostForSell, @ReserveMoney, @PayForRequest, @ShopToRate, @CreditAdd, @Announce, @SearchHotKey, @SendAuctionEmail, @SendRegEmail, @EnableIntergration, @HLShopMasterE_PWD, @HLShopMasterE_UID, @HLShopMasterE_Smtp)";
			this._adapter.InsertCommand.CommandType = CommandType.Text;
			this._adapter.InsertCommand.Parameters.Add(new SqlParameter("@HLShopName", SqlDbType.VarChar, 0, ParameterDirection.Input, 0, 0, "HLShopName", DataRowVersion.Current, false, null, "", "", ""));
			this._adapter.InsertCommand.Parameters.Add(new SqlParameter("@HLShopStatus", SqlDbType.Bit, 0, ParameterDirection.Input, 0, 0, "HLShopStatus", DataRowVersion.Current, false, null, "", "", ""));
			this._adapter.InsertCommand.Parameters.Add(new SqlParameter("@HLShopUrl", SqlDbType.VarChar, 0, ParameterDirection.Input, 0, 0, "HLShopUrl", DataRowVersion.Current, false, null, "", "", ""));
			this._adapter.InsertCommand.Parameters.Add(new SqlParameter("@HLShopKey", SqlDbType.VarChar, 0, ParameterDirection.Input, 0, 0, "HLShopKey", DataRowVersion.Current, false, null, "", "", ""));
			this._adapter.InsertCommand.Parameters.Add(new SqlParameter("@HLShopMasterEmail", SqlDbType.VarChar, 0, ParameterDirection.Input, 0, 0, "HLShopMasterEmail", DataRowVersion.Current, false, null, "", "", ""));
			this._adapter.InsertCommand.Parameters.Add(new SqlParameter("@StatusInfo", SqlDbType.Text, 0, ParameterDirection.Input, 0, 0, "StatusInfo", DataRowVersion.Current, false, null, "", "", ""));
			this._adapter.InsertCommand.Parameters.Add(new SqlParameter("@Model", SqlDbType.VarChar, 0, ParameterDirection.Input, 0, 0, "Model", DataRowVersion.Current, false, null, "", "", ""));
			this._adapter.InsertCommand.Parameters.Add(new SqlParameter("@HLShopMasterPhone", SqlDbType.VarChar, 0, ParameterDirection.Input, 0, 0, "HLShopMasterPhone", DataRowVersion.Current, false, null, "", "", ""));
			this._adapter.InsertCommand.Parameters.Add(new SqlParameter("@HLShopMasterQQ", SqlDbType.VarChar, 0, ParameterDirection.Input, 0, 0, "HLShopMasterQQ", DataRowVersion.Current, false, null, "", "", ""));
			this._adapter.InsertCommand.Parameters.Add(new SqlParameter("@RegKind", SqlDbType.Int, 0, ParameterDirection.Input, 0, 0, "RegKind", DataRowVersion.Current, false, null, "", "", ""));
			this._adapter.InsertCommand.Parameters.Add(new SqlParameter("@AutoDelCircle", SqlDbType.Int, 0, ParameterDirection.Input, 0, 0, "AutoDelCircle", DataRowVersion.Current, false, null, "", "", ""));
			this._adapter.InsertCommand.Parameters.Add(new SqlParameter("@ItemsPrePage", SqlDbType.Int, 0, ParameterDirection.Input, 0, 0, "ItemsPrePage", DataRowVersion.Current, false, null, "", "", ""));
			this._adapter.InsertCommand.Parameters.Add(new SqlParameter("@PayForSell", SqlDbType.Decimal, 0, ParameterDirection.Input, 18, 0, "PayForSell", DataRowVersion.Current, false, null, "", "", ""));
			this._adapter.InsertCommand.Parameters.Add(new SqlParameter("@CostForSell", SqlDbType.Decimal, 0, ParameterDirection.Input, 18, 0, "CostForSell", DataRowVersion.Current, false, null, "", "", ""));
			this._adapter.InsertCommand.Parameters.Add(new SqlParameter("@ReserveMoney", SqlDbType.Decimal, 0, ParameterDirection.Input, 18, 0, "ReserveMoney", DataRowVersion.Current, false, null, "", "", ""));
			this._adapter.InsertCommand.Parameters.Add(new SqlParameter("@PayForRequest", SqlDbType.Decimal, 0, ParameterDirection.Input, 18, 0, "PayForRequest", DataRowVersion.Current, false, null, "", "", ""));
			this._adapter.InsertCommand.Parameters.Add(new SqlParameter("@ShopToRate", SqlDbType.Int, 0, ParameterDirection.Input, 0, 0, "ShopToRate", DataRowVersion.Current, false, null, "", "", ""));
			this._adapter.InsertCommand.Parameters.Add(new SqlParameter("@CreditAdd", SqlDbType.Int, 0, ParameterDirection.Input, 0, 0, "CreditAdd", DataRowVersion.Current, false, null, "", "", ""));
			this._adapter.InsertCommand.Parameters.Add(new SqlParameter("@Announce", SqlDbType.Text, 0, ParameterDirection.Input, 0, 0, "Announce", DataRowVersion.Current, false, null, "", "", ""));
			this._adapter.InsertCommand.Parameters.Add(new SqlParameter("@SearchHotKey", SqlDbType.Text, 0, ParameterDirection.Input, 0, 0, "SearchHotKey", DataRowVersion.Current, false, null, "", "", ""));
			this._adapter.InsertCommand.Parameters.Add(new SqlParameter("@SendAuctionEmail", SqlDbType.Bit, 0, ParameterDirection.Input, 0, 0, "SendAuctionEmail", DataRowVersion.Current, false, null, "", "", ""));
			this._adapter.InsertCommand.Parameters.Add(new SqlParameter("@SendRegEmail", SqlDbType.Bit, 0, ParameterDirection.Input, 0, 0, "SendRegEmail", DataRowVersion.Current, false, null, "", "", ""));
			this._adapter.InsertCommand.Parameters.Add(new SqlParameter("@EnableIntergration", SqlDbType.Bit, 0, ParameterDirection.Input, 0, 0, "EnableIntergration", DataRowVersion.Current, false, null, "", "", ""));
			this._adapter.InsertCommand.Parameters.Add(new SqlParameter("@HLShopMasterE_PWD", SqlDbType.VarChar, 0, ParameterDirection.Input, 0, 0, "HLShopMasterE_PWD", DataRowVersion.Current, false, null, "", "", ""));
			this._adapter.InsertCommand.Parameters.Add(new SqlParameter("@HLShopMasterE_UID", SqlDbType.VarChar, 0, ParameterDirection.Input, 0, 0, "HLShopMasterE_UID", DataRowVersion.Current, false, null, "", "", ""));
			this._adapter.InsertCommand.Parameters.Add(new SqlParameter("@HLShopMasterE_Smtp", SqlDbType.VarChar, 0, ParameterDirection.Input, 0, 0, "HLShopMasterE_Smtp", DataRowVersion.Current, false, null, "", "", ""));
		}
		[System.Diagnostics.DebuggerNonUserCode]
		private void InitConnection()
		{
			this._connection = new SqlConnection();
			this._connection.ConnectionString = Conn.CurrenConnectionStrings;
		}
		[System.Diagnostics.DebuggerNonUserCode]
		private void InitCommandCollection()
		{
			this._commandCollection = new SqlCommand[2];
			this._commandCollection[0] = new SqlCommand();
			this._commandCollection[0].Connection = this.Connection;
			this._commandCollection[0].CommandText = "SELECT HLShop_Config.*\r\nFROM HLShop_Config";
			this._commandCollection[0].CommandType = CommandType.Text;
			this._commandCollection[1] = new SqlCommand();
			this._commandCollection[1].Connection = this.Connection;
			this._commandCollection[1].CommandText = "UPDATE [HLShop_Config] SET [HLShopName] = @HLShopName, [HLShopStatus] = @HLShopStatus, [HLShopUrl] = @HLShopUrl, [HLShopKey] = @HLShopKey, [HLShopMasterEmail] = @HLShopMasterEmail, [StatusInfo] = @StatusInfo, [Model] = @Model, [HLShopMasterPhone] = @HLShopMasterPhone, [HLShopMasterQQ] = @HLShopMasterQQ, [RegKind] = @RegKind, [AutoDelCircle] = @AutoDelCircle, [ItemsPrePage] = @ItemsPrePage, [PayForSell] = @PayForSell, [CostForSell] = @CostForSell, [ReserveMoney] = @ReserveMoney, [PayForRequest] = @PayForRequest, [ShopToRate] = @ShopToRate, [CreditAdd] = @CreditAdd, [Announce] = @Announce, [SearchHotKey] = @SearchHotKey, [SendAuctionEmail] = @SendAuctionEmail, [SendRegEmail] = @SendRegEmail, [EnableIntergration] = @EnableIntergration  ";
			this._commandCollection[1].CommandType = CommandType.Text;
			this._commandCollection[1].Parameters.Add(new SqlParameter("@HLShopName", SqlDbType.VarChar, 50, ParameterDirection.Input, 0, 0, "HLShopName", DataRowVersion.Current, false, null, "", "", ""));
			this._commandCollection[1].Parameters.Add(new SqlParameter("@HLShopStatus", SqlDbType.Bit, 1, ParameterDirection.Input, 0, 0, "HLShopStatus", DataRowVersion.Current, false, null, "", "", ""));
			this._commandCollection[1].Parameters.Add(new SqlParameter("@HLShopUrl", SqlDbType.Text, 2147483647, ParameterDirection.Input, 0, 0, "HLShopUrl", DataRowVersion.Current, false, null, "", "", ""));
			this._commandCollection[1].Parameters.Add(new SqlParameter("@HLShopKey", SqlDbType.Text, 2147483647, ParameterDirection.Input, 0, 0, "HLShopKey", DataRowVersion.Current, false, null, "", "", ""));
			this._commandCollection[1].Parameters.Add(new SqlParameter("@HLShopMasterEmail", SqlDbType.VarChar, 50, ParameterDirection.Input, 0, 0, "HLShopMasterEmail", DataRowVersion.Current, false, null, "", "", ""));
			this._commandCollection[1].Parameters.Add(new SqlParameter("@StatusInfo", SqlDbType.Text, 2147483647, ParameterDirection.Input, 0, 0, "StatusInfo", DataRowVersion.Current, false, null, "", "", ""));
			this._commandCollection[1].Parameters.Add(new SqlParameter("@Model", SqlDbType.VarChar, 50, ParameterDirection.Input, 0, 0, "Model", DataRowVersion.Current, false, null, "", "", ""));
			this._commandCollection[1].Parameters.Add(new SqlParameter("@HLShopMasterPhone", SqlDbType.VarChar, 50, ParameterDirection.Input, 0, 0, "HLShopMasterPhone", DataRowVersion.Current, false, null, "", "", ""));
			this._commandCollection[1].Parameters.Add(new SqlParameter("@HLShopMasterQQ", SqlDbType.VarChar, 50, ParameterDirection.Input, 0, 0, "HLShopMasterQQ", DataRowVersion.Current, false, null, "", "", ""));
			this._commandCollection[1].Parameters.Add(new SqlParameter("@RegKind", SqlDbType.Int, 4, ParameterDirection.Input, 0, 0, "RegKind", DataRowVersion.Current, false, null, "", "", ""));
			this._commandCollection[1].Parameters.Add(new SqlParameter("@AutoDelCircle", SqlDbType.Int, 4, ParameterDirection.Input, 0, 0, "AutoDelCircle", DataRowVersion.Current, false, null, "", "", ""));
			this._commandCollection[1].Parameters.Add(new SqlParameter("@ItemsPrePage", SqlDbType.Int, 4, ParameterDirection.Input, 0, 0, "ItemsPrePage", DataRowVersion.Current, false, null, "", "", ""));
			this._commandCollection[1].Parameters.Add(new SqlParameter("@PayForSell", SqlDbType.Float, 8, ParameterDirection.Input, 0, 0, "PayForSell", DataRowVersion.Current, false, null, "", "", ""));
			this._commandCollection[1].Parameters.Add(new SqlParameter("@CostForSell", SqlDbType.Float, 8, ParameterDirection.Input, 0, 0, "CostForSell", DataRowVersion.Current, false, null, "", "", ""));
			this._commandCollection[1].Parameters.Add(new SqlParameter("@ReserveMoney", SqlDbType.Float, 8, ParameterDirection.Input, 0, 0, "ReserveMoney", DataRowVersion.Current, false, null, "", "", ""));
			this._commandCollection[1].Parameters.Add(new SqlParameter("@PayForRequest", SqlDbType.Float, 8, ParameterDirection.Input, 0, 0, "PayForRequest", DataRowVersion.Current, false, null, "", "", ""));
			this._commandCollection[1].Parameters.Add(new SqlParameter("@ShopToRate", SqlDbType.Int, 4, ParameterDirection.Input, 0, 0, "ShopToRate", DataRowVersion.Current, false, null, "", "", ""));
			this._commandCollection[1].Parameters.Add(new SqlParameter("@CreditAdd", SqlDbType.Int, 4, ParameterDirection.Input, 0, 0, "CreditAdd", DataRowVersion.Current, false, null, "", "", ""));
			this._commandCollection[1].Parameters.Add(new SqlParameter("@Announce", SqlDbType.Text, 2147483647, ParameterDirection.Input, 0, 0, "Announce", DataRowVersion.Current, false, null, "", "", ""));
			this._commandCollection[1].Parameters.Add(new SqlParameter("@SearchHotKey", SqlDbType.Text, 2147483647, ParameterDirection.Input, 0, 0, "SearchHotKey", DataRowVersion.Current, false, null, "", "", ""));
			this._commandCollection[1].Parameters.Add(new SqlParameter("@SendAuctionEmail", SqlDbType.Bit, 1, ParameterDirection.Input, 0, 0, "SendAuctionEmail", DataRowVersion.Current, false, null, "", "", ""));
			this._commandCollection[1].Parameters.Add(new SqlParameter("@SendRegEmail", SqlDbType.Bit, 1, ParameterDirection.Input, 0, 0, "SendRegEmail", DataRowVersion.Current, false, null, "", "", ""));
			this._commandCollection[1].Parameters.Add(new SqlParameter("@EnableIntergration", SqlDbType.Bit, 1, ParameterDirection.Input, 0, 0, "EnableIntergration", DataRowVersion.Current, false, null, "", "", ""));
		}
		[DataObjectMethod(DataObjectMethodType.Fill, true), HelpKeyword("vs.data.TableAdapter"), System.Diagnostics.DebuggerNonUserCode]
		public virtual int Fill(A_Shopcinfig.HLShop_ConfigDataTable dataTable)
		{
			this.Adapter.SelectCommand = this.CommandCollection[0];
			if (this.ClearBeforeFill)
			{
				dataTable.Clear();
			}
			return this.Adapter.Fill(dataTable);
		}
		[DataObjectMethod(DataObjectMethodType.Select, true), HelpKeyword("vs.data.TableAdapter"), System.Diagnostics.DebuggerNonUserCode]
		public virtual A_Shopcinfig.HLShop_ConfigDataTable GetShopConfig()
		{
			this.Adapter.SelectCommand = this.CommandCollection[0];
			A_Shopcinfig.HLShop_ConfigDataTable hLShop_ConfigDataTable = new A_Shopcinfig.HLShop_ConfigDataTable();
			this.Adapter.Fill(hLShop_ConfigDataTable);
			return hLShop_ConfigDataTable;
		}
		[HelpKeyword("vs.data.TableAdapter"), System.Diagnostics.DebuggerNonUserCode]
		public virtual int Update(A_Shopcinfig.HLShop_ConfigDataTable dataTable)
		{
			return this.Adapter.Update(dataTable);
		}
		[HelpKeyword("vs.data.TableAdapter"), System.Diagnostics.DebuggerNonUserCode]
		public virtual int Update(A_Shopcinfig dataSet)
		{
			return this.Adapter.Update(dataSet, "HLShop_Config");
		}
		[HelpKeyword("vs.data.TableAdapter"), System.Diagnostics.DebuggerNonUserCode]
		public virtual int Update(DataRow dataRow)
		{
			return this.Adapter.Update(new DataRow[]
			{
				dataRow
			});
		}
		[HelpKeyword("vs.data.TableAdapter"), System.Diagnostics.DebuggerNonUserCode]
		public virtual int Update(DataRow[] dataRows)
		{
			return this.Adapter.Update(dataRows);
		}
		[DataObjectMethod(DataObjectMethodType.Insert, true), HelpKeyword("vs.data.TableAdapter"), System.Diagnostics.DebuggerNonUserCode]
		public virtual int Insert(string HLShopName, bool? HLShopStatus, string HLShopUrl, string HLShopKey, string HLShopMasterEmail, string StatusInfo, string Model, string HLShopMasterPhone, string HLShopMasterQQ, int? RegKind, int? AutoDelCircle, int? ItemsPrePage, decimal? PayForSell, decimal? CostForSell, decimal? ReserveMoney, decimal? PayForRequest, int? ShopToRate, int? CreditAdd, string Announce, string SearchHotKey, bool? SendAuctionEmail, bool? SendRegEmail, bool? EnableIntergration, string HLShopMasterE_PWD, string HLShopMasterE_UID, string HLShopMasterE_Smtp)
		{
			if (HLShopName == null)
			{
				this.Adapter.InsertCommand.Parameters[0].Value = System.DBNull.Value;
			}
			else
			{
				this.Adapter.InsertCommand.Parameters[0].Value = HLShopName;
			}
			if (HLShopStatus.HasValue)
			{
				this.Adapter.InsertCommand.Parameters[1].Value = HLShopStatus.Value;
			}
			else
			{
				this.Adapter.InsertCommand.Parameters[1].Value = System.DBNull.Value;
			}
			if (HLShopUrl == null)
			{
				this.Adapter.InsertCommand.Parameters[2].Value = System.DBNull.Value;
			}
			else
			{
				this.Adapter.InsertCommand.Parameters[2].Value = HLShopUrl;
			}
			if (HLShopKey == null)
			{
				this.Adapter.InsertCommand.Parameters[3].Value = System.DBNull.Value;
			}
			else
			{
				this.Adapter.InsertCommand.Parameters[3].Value = HLShopKey;
			}
			if (HLShopMasterEmail == null)
			{
				this.Adapter.InsertCommand.Parameters[4].Value = System.DBNull.Value;
			}
			else
			{
				this.Adapter.InsertCommand.Parameters[4].Value = HLShopMasterEmail;
			}
			if (StatusInfo == null)
			{
				this.Adapter.InsertCommand.Parameters[5].Value = System.DBNull.Value;
			}
			else
			{
				this.Adapter.InsertCommand.Parameters[5].Value = StatusInfo;
			}
			if (Model == null)
			{
				this.Adapter.InsertCommand.Parameters[6].Value = System.DBNull.Value;
			}
			else
			{
				this.Adapter.InsertCommand.Parameters[6].Value = Model;
			}
			if (HLShopMasterPhone == null)
			{
				this.Adapter.InsertCommand.Parameters[7].Value = System.DBNull.Value;
			}
			else
			{
				this.Adapter.InsertCommand.Parameters[7].Value = HLShopMasterPhone;
			}
			if (HLShopMasterQQ == null)
			{
				this.Adapter.InsertCommand.Parameters[8].Value = System.DBNull.Value;
			}
			else
			{
				this.Adapter.InsertCommand.Parameters[8].Value = HLShopMasterQQ;
			}
			if (RegKind.HasValue)
			{
				this.Adapter.InsertCommand.Parameters[9].Value = RegKind.Value;
			}
			else
			{
				this.Adapter.InsertCommand.Parameters[9].Value = System.DBNull.Value;
			}
			if (AutoDelCircle.HasValue)
			{
				this.Adapter.InsertCommand.Parameters[10].Value = AutoDelCircle.Value;
			}
			else
			{
				this.Adapter.InsertCommand.Parameters[10].Value = System.DBNull.Value;
			}
			if (ItemsPrePage.HasValue)
			{
				this.Adapter.InsertCommand.Parameters[11].Value = ItemsPrePage.Value;
			}
			else
			{
				this.Adapter.InsertCommand.Parameters[11].Value = System.DBNull.Value;
			}
			if (PayForSell.HasValue)
			{
				this.Adapter.InsertCommand.Parameters[12].Value = PayForSell.Value;
			}
			else
			{
				this.Adapter.InsertCommand.Parameters[12].Value = System.DBNull.Value;
			}
			if (CostForSell.HasValue)
			{
				this.Adapter.InsertCommand.Parameters[13].Value = CostForSell.Value;
			}
			else
			{
				this.Adapter.InsertCommand.Parameters[13].Value = System.DBNull.Value;
			}
			if (ReserveMoney.HasValue)
			{
				this.Adapter.InsertCommand.Parameters[14].Value = ReserveMoney.Value;
			}
			else
			{
				this.Adapter.InsertCommand.Parameters[14].Value = System.DBNull.Value;
			}
			if (PayForRequest.HasValue)
			{
				this.Adapter.InsertCommand.Parameters[15].Value = PayForRequest.Value;
			}
			else
			{
				this.Adapter.InsertCommand.Parameters[15].Value = System.DBNull.Value;
			}
			if (ShopToRate.HasValue)
			{
				this.Adapter.InsertCommand.Parameters[16].Value = ShopToRate.Value;
			}
			else
			{
				this.Adapter.InsertCommand.Parameters[16].Value = System.DBNull.Value;
			}
			if (CreditAdd.HasValue)
			{
				this.Adapter.InsertCommand.Parameters[17].Value = CreditAdd.Value;
			}
			else
			{
				this.Adapter.InsertCommand.Parameters[17].Value = System.DBNull.Value;
			}
			if (Announce == null)
			{
				this.Adapter.InsertCommand.Parameters[18].Value = System.DBNull.Value;
			}
			else
			{
				this.Adapter.InsertCommand.Parameters[18].Value = Announce;
			}
			if (SearchHotKey == null)
			{
				this.Adapter.InsertCommand.Parameters[19].Value = System.DBNull.Value;
			}
			else
			{
				this.Adapter.InsertCommand.Parameters[19].Value = SearchHotKey;
			}
			if (SendAuctionEmail.HasValue)
			{
				this.Adapter.InsertCommand.Parameters[20].Value = SendAuctionEmail.Value;
			}
			else
			{
				this.Adapter.InsertCommand.Parameters[20].Value = System.DBNull.Value;
			}
			if (SendRegEmail.HasValue)
			{
				this.Adapter.InsertCommand.Parameters[21].Value = SendRegEmail.Value;
			}
			else
			{
				this.Adapter.InsertCommand.Parameters[21].Value = System.DBNull.Value;
			}
			if (EnableIntergration.HasValue)
			{
				this.Adapter.InsertCommand.Parameters[22].Value = EnableIntergration.Value;
			}
			else
			{
				this.Adapter.InsertCommand.Parameters[22].Value = System.DBNull.Value;
			}
			if (HLShopMasterE_PWD == null)
			{
				this.Adapter.InsertCommand.Parameters[23].Value = System.DBNull.Value;
			}
			else
			{
				this.Adapter.InsertCommand.Parameters[23].Value = HLShopMasterE_PWD;
			}
			if (HLShopMasterE_UID == null)
			{
				this.Adapter.InsertCommand.Parameters[24].Value = System.DBNull.Value;
			}
			else
			{
				this.Adapter.InsertCommand.Parameters[24].Value = HLShopMasterE_UID;
			}
			if (HLShopMasterE_Smtp == null)
			{
				this.Adapter.InsertCommand.Parameters[25].Value = System.DBNull.Value;
			}
			else
			{
				this.Adapter.InsertCommand.Parameters[25].Value = HLShopMasterE_Smtp;
			}
			ConnectionState state = this.Adapter.InsertCommand.Connection.State;
			if ((this.Adapter.InsertCommand.Connection.State & ConnectionState.Open) != ConnectionState.Open)
			{
				this.Adapter.InsertCommand.Connection.Open();
			}
			int result;
			try
			{
				int num = this.Adapter.InsertCommand.ExecuteNonQuery();
				result = num;
			}
			finally
			{
				if (state == ConnectionState.Closed)
				{
					this.Adapter.InsertCommand.Connection.Close();
				}
			}
			return result;
		}
		[DataObjectMethod(DataObjectMethodType.Update, false), HelpKeyword("vs.data.TableAdapter"), System.Diagnostics.DebuggerNonUserCode]
		public virtual int UpdateShopConfig(string HLShopName, bool? HLShopStatus, string HLShopUrl, string HLShopKey, string HLShopMasterEmail, string StatusInfo, string Model, string HLShopMasterPhone, string HLShopMasterQQ, int? RegKind, int? AutoDelCircle, int? ItemsPrePage, float? PayForSell, float? CostForSell, float? ReserveMoney, float? PayForRequest, int? ShopToRate, int? CreditAdd, string Announce, string SearchHotKey, bool? SendAuctionEmail, bool? SendRegEmail, bool? EnableIntergration)
		{
			SqlCommand sqlCommand = this.CommandCollection[1];
			if (HLShopName == null)
			{
				sqlCommand.Parameters[0].Value = System.DBNull.Value;
			}
			else
			{
				sqlCommand.Parameters[0].Value = HLShopName;
			}
			if (HLShopStatus.HasValue)
			{
				sqlCommand.Parameters[1].Value = HLShopStatus.Value;
			}
			else
			{
				sqlCommand.Parameters[1].Value = System.DBNull.Value;
			}
			if (HLShopUrl == null)
			{
				sqlCommand.Parameters[2].Value = System.DBNull.Value;
			}
			else
			{
				sqlCommand.Parameters[2].Value = HLShopUrl;
			}
			if (HLShopKey == null)
			{
				sqlCommand.Parameters[3].Value = System.DBNull.Value;
			}
			else
			{
				sqlCommand.Parameters[3].Value = HLShopKey;
			}
			if (HLShopMasterEmail == null)
			{
				sqlCommand.Parameters[4].Value = System.DBNull.Value;
			}
			else
			{
				sqlCommand.Parameters[4].Value = HLShopMasterEmail;
			}
			if (StatusInfo == null)
			{
				sqlCommand.Parameters[5].Value = System.DBNull.Value;
			}
			else
			{
				sqlCommand.Parameters[5].Value = StatusInfo;
			}
			if (Model == null)
			{
				sqlCommand.Parameters[6].Value = System.DBNull.Value;
			}
			else
			{
				sqlCommand.Parameters[6].Value = Model;
			}
			if (HLShopMasterPhone == null)
			{
				sqlCommand.Parameters[7].Value = System.DBNull.Value;
			}
			else
			{
				sqlCommand.Parameters[7].Value = HLShopMasterPhone;
			}
			if (HLShopMasterQQ == null)
			{
				sqlCommand.Parameters[8].Value = System.DBNull.Value;
			}
			else
			{
				sqlCommand.Parameters[8].Value = HLShopMasterQQ;
			}
			if (RegKind.HasValue)
			{
				sqlCommand.Parameters[9].Value = RegKind.Value;
			}
			else
			{
				sqlCommand.Parameters[9].Value = System.DBNull.Value;
			}
			if (AutoDelCircle.HasValue)
			{
				sqlCommand.Parameters[10].Value = AutoDelCircle.Value;
			}
			else
			{
				sqlCommand.Parameters[10].Value = System.DBNull.Value;
			}
			if (ItemsPrePage.HasValue)
			{
				sqlCommand.Parameters[11].Value = ItemsPrePage.Value;
			}
			else
			{
				sqlCommand.Parameters[11].Value = System.DBNull.Value;
			}
			if (PayForSell.HasValue)
			{
				sqlCommand.Parameters[12].Value = PayForSell.Value;
			}
			else
			{
				sqlCommand.Parameters[12].Value = System.DBNull.Value;
			}
			if (CostForSell.HasValue)
			{
				sqlCommand.Parameters[13].Value = CostForSell.Value;
			}
			else
			{
				sqlCommand.Parameters[13].Value = System.DBNull.Value;
			}
			if (ReserveMoney.HasValue)
			{
				sqlCommand.Parameters[14].Value = ReserveMoney.Value;
			}
			else
			{
				sqlCommand.Parameters[14].Value = System.DBNull.Value;
			}
			if (PayForRequest.HasValue)
			{
				sqlCommand.Parameters[15].Value = PayForRequest.Value;
			}
			else
			{
				sqlCommand.Parameters[15].Value = System.DBNull.Value;
			}
			if (ShopToRate.HasValue)
			{
				sqlCommand.Parameters[16].Value = ShopToRate.Value;
			}
			else
			{
				sqlCommand.Parameters[16].Value = System.DBNull.Value;
			}
			if (CreditAdd.HasValue)
			{
				sqlCommand.Parameters[17].Value = CreditAdd.Value;
			}
			else
			{
				sqlCommand.Parameters[17].Value = System.DBNull.Value;
			}
			if (Announce == null)
			{
				sqlCommand.Parameters[18].Value = System.DBNull.Value;
			}
			else
			{
				sqlCommand.Parameters[18].Value = Announce;
			}
			if (SearchHotKey == null)
			{
				sqlCommand.Parameters[19].Value = System.DBNull.Value;
			}
			else
			{
				sqlCommand.Parameters[19].Value = SearchHotKey;
			}
			if (SendAuctionEmail.HasValue)
			{
				sqlCommand.Parameters[20].Value = SendAuctionEmail.Value;
			}
			else
			{
				sqlCommand.Parameters[20].Value = System.DBNull.Value;
			}
			if (SendRegEmail.HasValue)
			{
				sqlCommand.Parameters[21].Value = SendRegEmail.Value;
			}
			else
			{
				sqlCommand.Parameters[21].Value = System.DBNull.Value;
			}
			if (EnableIntergration.HasValue)
			{
				sqlCommand.Parameters[22].Value = EnableIntergration.Value;
			}
			else
			{
				sqlCommand.Parameters[22].Value = System.DBNull.Value;
			}
			ConnectionState state = sqlCommand.Connection.State;
			if ((sqlCommand.Connection.State & ConnectionState.Open) != ConnectionState.Open)
			{
				sqlCommand.Connection.Open();
			}
			int result;
			try
			{
				result = sqlCommand.ExecuteNonQuery();
			}
			finally
			{
				if (state == ConnectionState.Closed)
				{
					sqlCommand.Connection.Close();
				}
			}
			return result;
		}
	}
}
